package core.communication.message;

import core.communication.electionConfiguration.CMember;

public class UpdateMemberMessage extends Message {
	private static final long serialVersionUID = 423176982735175010L;

	private String memberIdentificationField;
	private CMember member;

	public UpdateMemberMessage(String destinationUri, String memberIdentificationField, CMember member) {
		super();
		setPriority(MessagePriority.NORMAL);
		setMessageType(MessageType.EntityUpdate);
		setDestinationURI(destinationUri);
		setDirection(Direction.DOWN);
		this.memberIdentificationField = memberIdentificationField;
		this.member = member;
	}

	public String getMemberIdentificationField() {
		return memberIdentificationField;
	}

	public void setMemberIdentificationField(String memberIdentificationField) {
		this.memberIdentificationField = memberIdentificationField;
	}

	public CMember getMember() {
		return member;
	}

	public void setMember(CMember member) {
		this.member = member;
	}
}
